<?php  
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/header.php');
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
$config=include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
$rew=sel($config,'`liuyan`');
$re=sel($config,'biaoqian')
?> 
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/admin/index.php">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">留言管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="xiugai1.php" method="post">

                    <table class="search-tab">
                        <tr>
                           <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th>留言</th>                          
                            <th>发布人</th>
                            <th>标签</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        <?php
                        foreach ($rew as $v) {
                        echo '<tr>                              
                              <td></td>
                              <td>'.$v['content'].'</td>
                              <td>'.$v['author'].'</td>
                              <td>'.$v['biao'].'</td>
                              <td>'.$v['addtime'].'</td>
                              <td>
                                <a class="link-update" href="xiugai1.php?id='.$v['id'].'">修改</a>
                                <a class="link-del" href="shangchu.php?id='.$v['id'].'">删除</a>
                              </td>
                              </tr>';
                              };
                               
                    ?>
                    </table>
                    <div class="list-page"><?php echo page($config,'guanli');?></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
<?php  
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/footer.php');
?> 